<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
  <head>
  <meta charset="utf-8" />
  <base href="<%=basePath%>">
<title>操作成功</title>
      <link href="static/mycss/bootstrap.min.css" rel="stylesheet" />
      <script src='static/js/jquery-1.9.1.min.js'></script>
      <script type="text/javascript" src="static/js/layer.js"></script>
      <script type="text/javascript" src="static/js/lay/layui.js"></script>
      <link rel="stylesheet" href="static/css/layui.css" media="all">
<%--<script type="text/javascript" src="static/js/jquery-1.7.2.js"></script>--%>
    <style type="text/css"> 
        body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
        div.dialog {
            width: 80%;
            padding: 1em 4em;
            margin: 4em auto 0 auto;
            border: 1px solid #ccc;
            border-right-color: #999;
            border-bottom-color: #999;
        }
        h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
    </style> 
</head> 
 
<body> 
  <div class="dialog"> 
    <span>
     <img alt="" src="static/img/success.jpg" style="width:250px;height:250px;">
    </span>
    </div>
    <div>
        <br> <br> <br> <br> <br> <br> <br>
      <input type="button" id="fghghf" style="width:100px" class="btn btn-primary" onclick="guanbi();" value="确认"/>
   </div>
  <script type="text/javascript">
  $(top.hangge());
   time(3)
  function guanbi(){
      var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
      parent.layer.close(index); //再执行关闭
  }
  function time(wait) {
      if (wait == 0) {
          guanbi()
      } else {
          $("#fghghf").val("确认(" + wait + ")");
          wait--;
          setTimeout(function() {
                      time(wait)
                  },
                  1000)
      }
  }
  $(function(){
		var code = "${code}";
		var msg = "${msg}";
		if(code){
	    	 console.log(msg)
		}
	});
  </script>
</body> 
</html>
